#include <iostream>
#include <cmath>

using namespace std;

class RECT {
	private:
		int x1, y1, x2, y2;
	public:
		void set(int, int, int, int);
		double area();
		double perimeter();
		void showinfo();
		void show();
};


void RECT::set(int a, int b, int c, int d) {
	x1 = a;
	y1 = b;
	x2 = c;
	y2 = d;
}

double RECT::area() {
	int tmp;
	tmp = abs(x1 - x2) * abs(y1 - y2);
	return tmp;
}


double RECT::perimeter() {
	int tmp;
	tmp = abs(x1 - x2) + abs(y1 - y2);
	return 2 * tmp;
}


void RECT::showinfo() {
	cout << "(" << x1 << "," << y1 << "," << x2 << "," << y2 << ")";
}

void RECT::show() {
	int h, w;
	h = abs(y1 - y2);
	w = abs(x1 - x2);
	for (int i = 0; i < h; i++) {
		for (int j = 0; j < w; j++) {
			cout << "*";
		}
		cout << endl;
	}
}

int main() {
	RECT a;
	int x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	a.set(x1, y1, x2, y2);
	a.showinfo();
	cout << endl;
	cout << a.perimeter() << endl;
	cout << a.area() << endl;
	a.show();
	return 0;
}
